/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.inventario.modelo;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

/**
 *
 * @author ctrosch
 */
@Entity
@Table(name="stttpv")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="STTTPV_NRORUB")
public abstract class ST_Rubro implements Serializable {

    @EmbeddedId
    private ST_RubroPK id;

    @Column(name = "STTTPV_VALRUB", nullable = false, length = 30)
    private String valrub;
    
    @Column(name="STTTPV_DESCRP", length=60)
    private String descrp;

    @Column(name="STTTPV_DEBAJA",length=1)
    private String debaja;

    public String getDebaja() {
        return debaja;
    }

    public void setDebaja(String debaja) {
        this.debaja = debaja;
    }

    public String getDescrp() {
        return descrp;
    }

    public void setDescrp(String descrp) {
        this.descrp = descrp;
    }

    public ST_RubroPK getId() {
        return id;
    }

    public void setId(ST_RubroPK id) {
        this.id = id;
    }

    public String getValrub() {
        return valrub;
    }

    public void setValrub(String valrub) {
        this.valrub = valrub;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ST_Rubro other = (ST_Rubro) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }
    
    


    
}
